from Page import Page
from selenium import webdriver
import pytest, time

@pytest.fixture(scope='function')
def driver():
    driver = webdriver.Edge
    driver.maximize_window()
    yield driver
    driver.quit()


def test_001(driver):
    try:
        po = Page(driver)
        po.test_01()
    except Exception as e:
        t = time.strftime('%Y%m%d%M%H%S')
        driver.save_screenshot(t + '.png')
        print(e)
